<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    // 使用apply将foo的参数传递给bar
    function foo() {
      bar.apply(this.arguments);
    }
    function bar(a, b, c) {
      console.log(a, b, c);
    }
    foo(1, 2, 3);
  </script>
</html>
